﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000F91 RID: 3985
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueMagicUnitSelectInfo : IMessage<RogueMagicUnitSelectInfo>, IMessage, IEquatable<RogueMagicUnitSelectInfo>, IDeepCloneable<RogueMagicUnitSelectInfo>, IBufferMessage
	{
		// Token: 0x1700327A RID: 12922
		// (get) Token: 0x0600B277 RID: 45687 RVA: 0x001E1E47 File Offset: 0x001E0047
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueMagicUnitSelectInfo> Parser
		{
			get
			{
				return RogueMagicUnitSelectInfo._parser;
			}
		}

		// Token: 0x1700327B RID: 12923
		// (get) Token: 0x0600B278 RID: 45688 RVA: 0x001E1E4E File Offset: 0x001E004E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueMagicUnitSelectInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700327C RID: 12924
		// (get) Token: 0x0600B279 RID: 45689 RVA: 0x001E1E60 File Offset: 0x001E0060
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueMagicUnitSelectInfo.Descriptor;
			}
		}

		// Token: 0x0600B27A RID: 45690 RVA: 0x001E1E67 File Offset: 0x001E0067
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicUnitSelectInfo()
		{
		}

		// Token: 0x0600B27B RID: 45691 RVA: 0x001E1E7C File Offset: 0x001E007C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicUnitSelectInfo(RogueMagicUnitSelectInfo other) : this()
		{
			this.lGOAHPCLIFI_ = other.lGOAHPCLIFI_;
			this.bOIEEFIPNEG_ = other.bOIEEFIPNEG_;
			this.selectHintId_ = other.selectHintId_;
			this.aPEDOJKNIMO_ = ((other.aPEDOJKNIMO_ != null) ? other.aPEDOJKNIMO_.Clone() : null);
			this.selectMagicUnits_ = other.selectMagicUnits_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600B27C RID: 45692 RVA: 0x001E1EF1 File Offset: 0x001E00F1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicUnitSelectInfo Clone()
		{
			return new RogueMagicUnitSelectInfo(this);
		}

		// Token: 0x1700327D RID: 12925
		// (get) Token: 0x0600B27D RID: 45693 RVA: 0x001E1EF9 File Offset: 0x001E00F9
		// (set) Token: 0x0600B27E RID: 45694 RVA: 0x001E1F01 File Offset: 0x001E0101
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint LGOAHPCLIFI
		{
			get
			{
				return this.lGOAHPCLIFI_;
			}
			set
			{
				this.lGOAHPCLIFI_ = value;
			}
		}

		// Token: 0x1700327E RID: 12926
		// (get) Token: 0x0600B27F RID: 45695 RVA: 0x001E1F0A File Offset: 0x001E010A
		// (set) Token: 0x0600B280 RID: 45696 RVA: 0x001E1F12 File Offset: 0x001E0112
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint BOIEEFIPNEG
		{
			get
			{
				return this.bOIEEFIPNEG_;
			}
			set
			{
				this.bOIEEFIPNEG_ = value;
			}
		}

		// Token: 0x1700327F RID: 12927
		// (get) Token: 0x0600B281 RID: 45697 RVA: 0x001E1F1B File Offset: 0x001E011B
		// (set) Token: 0x0600B282 RID: 45698 RVA: 0x001E1F23 File Offset: 0x001E0123
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint SelectHintId
		{
			get
			{
				return this.selectHintId_;
			}
			set
			{
				this.selectHintId_ = value;
			}
		}

		// Token: 0x17003280 RID: 12928
		// (get) Token: 0x0600B283 RID: 45699 RVA: 0x001E1F2C File Offset: 0x001E012C
		// (set) Token: 0x0600B284 RID: 45700 RVA: 0x001E1F34 File Offset: 0x001E0134
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicGameUnit APEDOJKNIMO
		{
			get
			{
				return this.aPEDOJKNIMO_;
			}
			set
			{
				this.aPEDOJKNIMO_ = value;
			}
		}

		// Token: 0x17003281 RID: 12929
		// (get) Token: 0x0600B285 RID: 45701 RVA: 0x001E1F3D File Offset: 0x001E013D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<RogueMagicGameUnit> SelectMagicUnits
		{
			get
			{
				return this.selectMagicUnits_;
			}
		}

		// Token: 0x0600B286 RID: 45702 RVA: 0x001E1F45 File Offset: 0x001E0145
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueMagicUnitSelectInfo);
		}

		// Token: 0x0600B287 RID: 45703 RVA: 0x001E1F54 File Offset: 0x001E0154
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueMagicUnitSelectInfo other)
		{
			return other != null && (other == this || (this.LGOAHPCLIFI == other.LGOAHPCLIFI && this.BOIEEFIPNEG == other.BOIEEFIPNEG && this.SelectHintId == other.SelectHintId && object.Equals(this.APEDOJKNIMO, other.APEDOJKNIMO) && this.selectMagicUnits_.Equals(other.selectMagicUnits_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600B288 RID: 45704 RVA: 0x001E1FD8 File Offset: 0x001E01D8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.LGOAHPCLIFI != 0U)
			{
				num ^= this.LGOAHPCLIFI.GetHashCode();
			}
			if (this.BOIEEFIPNEG != 0U)
			{
				num ^= this.BOIEEFIPNEG.GetHashCode();
			}
			if (this.SelectHintId != 0U)
			{
				num ^= this.SelectHintId.GetHashCode();
			}
			if (this.aPEDOJKNIMO_ != null)
			{
				num ^= this.APEDOJKNIMO.GetHashCode();
			}
			num ^= this.selectMagicUnits_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600B289 RID: 45705 RVA: 0x001E206D File Offset: 0x001E026D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600B28A RID: 45706 RVA: 0x001E2075 File Offset: 0x001E0275
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600B28B RID: 45707 RVA: 0x001E2080 File Offset: 0x001E0280
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.selectMagicUnits_.WriteTo(ref output, RogueMagicUnitSelectInfo._repeated_selectMagicUnits_codec);
			if (this.SelectHintId != 0U)
			{
				output.WriteRawTag(32);
				output.WriteUInt32(this.SelectHintId);
			}
			if (this.aPEDOJKNIMO_ != null)
			{
				output.WriteRawTag(58);
				output.WriteMessage(this.APEDOJKNIMO);
			}
			if (this.LGOAHPCLIFI != 0U)
			{
				output.WriteRawTag(72);
				output.WriteUInt32(this.LGOAHPCLIFI);
			}
			if (this.BOIEEFIPNEG != 0U)
			{
				output.WriteRawTag(120);
				output.WriteUInt32(this.BOIEEFIPNEG);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600B28C RID: 45708 RVA: 0x001E2124 File Offset: 0x001E0324
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.LGOAHPCLIFI != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.LGOAHPCLIFI);
			}
			if (this.BOIEEFIPNEG != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.BOIEEFIPNEG);
			}
			if (this.SelectHintId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.SelectHintId);
			}
			if (this.aPEDOJKNIMO_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.APEDOJKNIMO);
			}
			num += this.selectMagicUnits_.CalculateSize(RogueMagicUnitSelectInfo._repeated_selectMagicUnits_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600B28D RID: 45709 RVA: 0x001E21C0 File Offset: 0x001E03C0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueMagicUnitSelectInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.LGOAHPCLIFI != 0U)
			{
				this.LGOAHPCLIFI = other.LGOAHPCLIFI;
			}
			if (other.BOIEEFIPNEG != 0U)
			{
				this.BOIEEFIPNEG = other.BOIEEFIPNEG;
			}
			if (other.SelectHintId != 0U)
			{
				this.SelectHintId = other.SelectHintId;
			}
			if (other.aPEDOJKNIMO_ != null)
			{
				if (this.aPEDOJKNIMO_ == null)
				{
					this.APEDOJKNIMO = new RogueMagicGameUnit();
				}
				this.APEDOJKNIMO.MergeFrom(other.APEDOJKNIMO);
			}
			this.selectMagicUnits_.Add(other.selectMagicUnits_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600B28E RID: 45710 RVA: 0x001E2261 File Offset: 0x001E0461
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600B28F RID: 45711 RVA: 0x001E226C File Offset: 0x001E046C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 32U)
				{
					if (num == 18U)
					{
						this.selectMagicUnits_.AddEntriesFrom(ref input, RogueMagicUnitSelectInfo._repeated_selectMagicUnits_codec);
						continue;
					}
					if (num == 32U)
					{
						this.SelectHintId = input.ReadUInt32();
						continue;
					}
				}
				else
				{
					if (num == 58U)
					{
						if (this.aPEDOJKNIMO_ == null)
						{
							this.APEDOJKNIMO = new RogueMagicGameUnit();
						}
						input.ReadMessage(this.APEDOJKNIMO);
						continue;
					}
					if (num == 72U)
					{
						this.LGOAHPCLIFI = input.ReadUInt32();
						continue;
					}
					if (num == 120U)
					{
						this.BOIEEFIPNEG = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04004824 RID: 18468
		private static readonly MessageParser<RogueMagicUnitSelectInfo> _parser = new MessageParser<RogueMagicUnitSelectInfo>(() => new RogueMagicUnitSelectInfo());

		// Token: 0x04004825 RID: 18469
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004826 RID: 18470
		public const int LGOAHPCLIFIFieldNumber = 9;

		// Token: 0x04004827 RID: 18471
		private uint lGOAHPCLIFI_;

		// Token: 0x04004828 RID: 18472
		public const int BOIEEFIPNEGFieldNumber = 15;

		// Token: 0x04004829 RID: 18473
		private uint bOIEEFIPNEG_;

		// Token: 0x0400482A RID: 18474
		public const int SelectHintIdFieldNumber = 4;

		// Token: 0x0400482B RID: 18475
		private uint selectHintId_;

		// Token: 0x0400482C RID: 18476
		public const int APEDOJKNIMOFieldNumber = 7;

		// Token: 0x0400482D RID: 18477
		private RogueMagicGameUnit aPEDOJKNIMO_;

		// Token: 0x0400482E RID: 18478
		public const int SelectMagicUnitsFieldNumber = 2;

		// Token: 0x0400482F RID: 18479
		private static readonly FieldCodec<RogueMagicGameUnit> _repeated_selectMagicUnits_codec = FieldCodec.ForMessage<RogueMagicGameUnit>(18U, RogueMagicGameUnit.Parser);

		// Token: 0x04004830 RID: 18480
		private readonly RepeatedField<RogueMagicGameUnit> selectMagicUnits_ = new RepeatedField<RogueMagicGameUnit>();
	}
}
